import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import store from './store/store';
//引入react-redux 提供Provider
import { Provider } from 'react-redux';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Provider store={store}>
    <App />
  </Provider>
);

/*React-Redux 提供<Provider/>组件，能够使你的整个app访问到Redux store中的数据：在入口文件index.js中书写
使用Provider组件给整个App组件提供store  => redux
*/ 
